package com.un.ebs.memorial.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.memorial.enums.MemberTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @since 2020-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Component
@TableName("tb_memorial_member")
public class MemorialMember extends Model<MemorialMember> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String name;

    private String createAt;

    private String createAtLogo;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private MemberTypeEnum memberType;

    private Date lastUpdateTime;

    private String memorialId;

    private String mobile;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}